package com.demo.service.impl;

import com.demo.dao.CustomerDao;
import com.demo.dao.DepartMentDao;
import com.demo.domain.Customer;
import com.demo.domain.Department;
import com.demo.service.CustomerService;
import com.demo.service.DepartMentService;

import java.util.List;

public class DepartMentServiceImpl implements DepartMentService {

    private DepartMentDao departMentDao;

    public void setDepartMentDao(DepartMentDao departMentDao) {
        this.departMentDao = departMentDao;
    }

    @Override
    public void addDepartMent(Department department) {

        departMentDao.addDepartMent(department);
    }

    @Override
    public List<Department> findMoreCondition(Department department) {
        return departMentDao.findMoreCondition(department);
    }

    @Override
    public List<Department> find() {
        List<Department> list = departMentDao.find();
        return list;
    }

    @Override
    public Department findOne(long d_id) {
        return departMentDao.findOne(d_id);
    }

    @Override
    public void delete(Department d) {

    }

    @Override
    public void update(Department department) {

    }


}
